
function fetchFeatureList() {
    $.post(getSystemContextPath() + "/FeatureServlet", {
        pro: "FeatureList",
    }, function (data) {
        /*console.log(data);*/
        const tbody = $("#warningTable tbody");
        //清除
        tbody.empty();
        $.each(data, function (index, feature) {
            const tr = $(`
            <tr class="fu">
                 <td><img src="${getSystemContextPath()+feature.cover}" alt="模组" width="60px"></td>
                 <td>${feature.id}</td>
                <td>${feature.affectedVersions}</td>
                <td>${feature.name}</td>
                <td>${feature.description}</td>
                <td>${feature.date}</td>
                <td style="width: 150px;">
                     <button class="edit" onclick="">编辑</button>
                     <button class="delete" onclick="">删除</button>
                </td>
            </tr>`)
            tbody.append(tr);
            $("tr th,tr td").css("min-width","90px");
        });
    },"json");
}
